//
//  BJAboutViewController.m
//  BowJoy
//
//  Created by  on 2024/5/14.
//

#import "BJAboutViewController.h"
#import "BJWebContentViewController.h"

@interface BJAboutViewController ()
@property (weak, nonatomic) IBOutlet UIView *bgGroundView;
@property (weak, nonatomic) IBOutlet UILabel *buildNumberL;

@end

@implementation BJAboutViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.naviTitle = @"About";
    NSString *version = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"];
    self.buildNumberL.text =   [NSString stringWithFormat:@"%@",version];

}




- (IBAction)clickTermsConditionsBtn:(id)sender {
    BJWebContentViewController *vc = [[BJWebContentViewController alloc]initWithTitle:@"Terms and Conditions" url: kUserProtocolUrl];
    vc.modalPresentationStyle = UIModalPresentationFullScreen;
    [self presentViewController:vc animated:YES completion:nil];
}


- (IBAction)clickPrivacyPolicyBtn:(id)sender {
    BJWebContentViewController *vc = [[BJWebContentViewController alloc]initWithTitle:@"Privacy Policy" url:kPrivacyPolicyUrl];
    vc.modalPresentationStyle = UIModalPresentationFullScreen;
    [self presentViewController:vc animated:YES completion:nil];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
